var workmate1 = {
    "name": "JSPang",
    "age": 33,
    "sex": 1,
    "job": "前端",
    "skill": {
        "skillOne": "HTML+CSS",
        "skillTwo": "JavaScript",
        "skillThree": "PHP"
    },
    "regeditTime": new Date()
}
var workmate2 = {
    "name": "ShengLei",
    "age": 30,
    "sex": 1,
    "job": "JAVA后端",
    "skill": {
        "skillOne": "HTML+CSS",
        "skillTwo": "J2EE",
        "skillThree": "PPT"
    },
    "regeditTime": new Date()
}
var workmate3 = {
    "name": "MinJie",
    "age": 20,
    "sex": 1,
    "job": "UI设计",
    "skill": {
        "skillOne": "PhotoShop",
        "skillTwo": "UI",
        "skillThree": "Word+Excel+PPT"
    },
    "regeditTime": new Date()
}

var db = connect('company'); //连接数据库company
var workmateArr = [workmate1, workmate2, workmate3]; // 将要插入的json数据放入数组
db.workmate.insert(workmateArr); // 将整个数据数组插入集合workmate中
print('[SUCCESS]: The data was inserted successfully.');